﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Weight.Dal.Contract;
using Weight.Model;
using Weight.Model.ParamEntity;
using Weight.Model.TableEntity;

namespace Weight.Bll.Contract
{
    public  class BllContractConsume
    {
        /// <summary>
        /// 消费dal层
        /// </summary>
        private DalContractConsume Dal = new DalContractConsume();

        /// <summary>
        /// 查询消费记录
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public List<ContractTicketConsumeEntity> List(QueryContractConsumeReq req)
        {
            if (req == null || string.IsNullOrEmpty( req.TicketId)) return  new List<ContractTicketConsumeEntity>();
            return Dal.List(req).ToList() ;
        }

    }
}
